package by.dezhits.liltweets;

import it.sephiroth.android.library.imagezoom.ImageViewTouch;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import by.dezhits.liltweets.images.ImageLoader;
import by.dezhits.liltweets.images.ImageLoader.ConvertOnLoadMode;

public class ImageActivity extends Activity {
	private ImageViewTouch mImageView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_image);
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
		mImageView = (ImageViewTouch) findViewById(R.id.iv_touch);
		String url = getIntent().getStringExtra(getString(R.string.image_url));
		ImageLoader loader = ImageLoader.getInstance();
		loader.bind(mImageView, url, ConvertOnLoadMode.NORMAL, false);
	}

	
}
